From: Ray Strode Date: Wed, 17 Jul 2013 20:02:55 +0000 (-0400) Subject: util: drop call that can't do anything X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~3918 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=7d5d7453c218506f91bc20f66aee070857c2c2c6;p=gnome-shell.git util: drop call that can't do anything this._clearMessageQueue() is a noop when this.hasPendingMessages is false so calling it in that case doesn't make sense. This commit drops that call. https://bugzilla.gnome.org/show_bug.cgi?id=704347 --- diff --git a/js/gdm/util.js b/js/gdm/util.js index 04b2d49f8..c9af991cc 100644 --- a/js/gdm/util.js +++ b/js/gdm/util.js @@ -164,7 +164,6 @@ const ShellUserVerifier = new Lang.Class({ answerQuery: function(serviceName, answer) { if (!this.hasPendingMessages) { - this._clearMessageQueue(); this._userVerifier.call_answer_query(serviceName, answer, this._cancellable, null); } else { let signalId = this.connect('no-more-messages',